package com.anda.jsu.yangsp.core.persistence;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @author xiaolu
 * @since 2012-08-22
 *
 */
public interface IBaseDao {

	public void save(Object o);
	
	public void saveOrUpdate(Object o);
	
	public void saveAll(Collection lists);
	
	public void update(Object o);
	
	public void delete(Object o);
	
	public void deleteObject(Class clazz, Serializable id);
	
	public void deleteAll(Collection lists);
	
	public Object findById(Class clazz, Serializable id);
	
	public List listAll(Class clazz);
	
	public List listByQuery(String hql);

	public List listBySQLQuery(String sql);
	
	public Integer updateByHql(String hql);
	
}
